import request from '@/utils/request'

export function getEmployeeList(params) {
  return request({
    url: '/users',
    method: 'get',
    params
  })
}

// 根据员工删除ID
export function delEmployeeById(id) {
  return request.delete(`/users/${id}`)
}

// 根据ID获取指定用户
export function getUerInfoById(id) {
  return request(`/users/${id}`)
}

// 编辑用户
export function editUser(data) {
  return request.put(`/users/${data.id}`, data)
}
